

#ifndef _ABS_DIALOGX_H_
#define _ABS_DIALOGX_H_

#include "CoreApi.hpp"
#include "AbstractObject.hpp"
#include "../OLApp/defines.hpp"

#include <QDialog>
#include <QObject>
#include <QPushButton>
#include <QVBoxLayout>

namespace NSCore {

	class COREAPI AbstractDialogx :
		public QDialog,
		public AbstractObject
	{
		Q_OBJECT
	public:
		AbstractDialogx(QWidget* p = nullptr);
		virtual ~AbstractDialogx();

	public:
		void setShowButton(bool show);
		void addWidget(QWidget* _widget, int stretch = 0);
	/*override*/
	public:
		inline QString className() override { return "AbstractDialogx"; };
	private:
		QVBoxLayout* m_layout{};
		QPushButton* m_confirm{};
		QPushButton* m_cancel{};

	};


}

#endif





